home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / networking / osi / isode / dosisode / DOSISODE80.ZIP / ISODE8.WRK / UNIX / H / SYS / IOCTL.H < prev    next >
Encoding:
C/C++ Source or Header  |  1991-12-09  |  1007 b   |  36 lines

  1. #define _IO(x,y)     (0x20000000|('x'<<8)|y)
  2. #define _IOR(x,y,t)  (0x40000000|((sizeof(t)&0x7f)<<16)|('x'<<8)|y)
  3. #define _IOW(x,y,t)  (0x80000000|((sizeof(t)&0x7f)<<16)|('x'<<8)|y)
  4. #define _IOWR(x,y,t) (0xc0000000|((sizeof(t)&0x7f)<<16)|('x'<<8)|y)
  5. #define SIOCSPGRP _IOW(s,8,int)
  6. #define TIOCGETP _IOR(t,8,struct sgttyb)
  7. #define TIOCSETP _IOW(t,9,struct sgttyb)
  8. #define TIOCGLTC _IOR(t,116,struct ltchars)
  9. #define TIOCSLTC _IOW(t,117,struct ltchars)
  10. #define TIOCNOTTY _IO(t,113)
  11. #define FIONREAD _IOR(f,127,int)
  12. #define FIONBIO  _IOW(f,126,int)
  13. #ifndef _SGTTYB_
  14. #define _SGTTYB_
  15. struct sgttyb {
  16.   char sg_ispeed;
  17.   char sg_ospeed;
  18.   char sg_erase;
  19.   char sg_kill;
  20.   char sg_flags;
  21. };
  22. struct ltchars {
  23.         char t_suspc;
  24.         char t_dsuspc;
  25.         char t_rprntc;
  26.         char t_flushc;
  27.         char t_werasc;
  28.         char t_lnextc;
  29. };
  30. #endif
  31. #define CBREAK 0x00000002
  32. #define LCASE 0x00000004
  33. #define ECHO 0x00000008
  34. #define CRMOD 0x00000010
  35. #define RAW 0x00000020
  36.